package registrypubsub

import (
	"starsine.cn/appTpl/cmn/logs"
	"starsine.cn/appTpl/cmn/pubsub"
)

var pubSub *pubsub.PubSubCore = nil

func Start() {
	pubSub = pubsub.CreatePubSubCore()
	logs.Infof("registrypubsub PubSubInit")
}

func GetPubSub() *pubsub.PubSubCore {
	return pubSub
}

func DumpPubSub() string {
	return pubSub.String()
}
